<%@ page language="java" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript" src="${ctx}/resource/js/app/admin/login.js"></script>
<div class="login-wrap">
	<div class="hd">
	</div>
	<div class="bd">
		<form:form action="${ctx}/admin/doLogin.htm" method="post" commandName="loginModel" id="loginForm">
			<div id="errMsg"><font color="red">${errMsg}</font></div>
			<label for="username">用户名：</label>
			<form:input cssErrorClass="input-error" path="loginName" maxlength="20" cssClass="input-style"/>
			<span id="loginNameTip"></span>
			<label for="password">密码：</label>
			<form:password cssErrorClass="input-error" path="password" maxlength="20" cssClass="input-style"/>
			<span id="passwordTip"></span>
			<label for="authCode">验证码：</label>
			<form:input cssErrorClass="input-error" path="authCode" maxlength="6" cssClass="input-style"/><img style="cursor:pointer" height="23px" width="66px" title="点击图片刷新验证码" alt="点击图片刷新验证码" class="reload-code" name="authCode1" id="authCode1" src="${ctx}/admin/authCode.htm"  onclick="javascript:refreshCode();"/>
			<span id="authCodeTip"></span>
			<div class="btn-box">
				<button type="submit" class="btn-1" onclick='javascript:$("#loginForm").submit();'>登录</button>&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn-1" onclick="loginFormReset();">重置</button>
			</div>
		</form:form>
	</div>
</div>